package com.wxgo.dao;

import java.util.List;

import com.wxgo.common.model.Industry;
import com.wxgo.dao.base.BaseDao;

public class IndustryDao extends BaseDao {

	static Industry dao = Industry.dao;

	public Industry findById(Integer id) {
		return dao.findById(id);
	}

	public Industry findByType(Integer type) {
		return dao.findFirst("select * from industry where type=?", type);
	}

	public List<Industry> find(String sql) {
		return Industry.dao.find(sql);
	}

	public List<Industry> find(String sql, Object... paras) {
		return Industry.dao.find(sql, paras);
	}

}
